package com.mybatis.mapper;

import com.mybatis.anno.ExtInsert;
import com.mybatis.anno.ExtParam;
import com.mybatis.anno.ExtSelect;
import com.mybatis.bean.User;

public interface UserMapper {
	@ExtInsert("insert into user(userName,userAge) values(#{userName},#{userAge})")
	public int insertUser(@ExtParam("userName")String userName,@ExtParam("userAge")int userAge);
	
	@ExtSelect("select * from user  where userName=#{userName} and userAge=#{userAge}")
	public User getUser(@ExtParam("userName")String userName,@ExtParam("userAge")int userAge);
}
